//
//  BaseRequestParams.m
//  OSChina
//
//  Created by 8b410-2 on 16/12/22.
//  Copyright © 2016年 abb. All rights reserved.
//

#import "OSCBaseRequestParams.h"
#import "OSCAccountTools.h"
@implementation OSCBaseRequestParams
- (instancetype)init {
    if (self = [super init]) {
         @weakify(self);
        [RACObserve([OSCAccountTools shareSession], account) subscribeNext:^(OSCAccount *account) {
            @strongify(self);
            self.access_token = account.access_token;
        }];
    }
    return self;
}
- (instancetype)initWithAccountToken:(NSString *)token {
    if (self = [super init]) {
        _access_token = token;
    }
    return self;
}
@end
